package com.xh.bussiness.practice.service;



import com.xh.bussiness.exam.bean.dto.UserErrorQuestionDto;
import com.xh.bussiness.practice.bean.dto.PracticeStudentVO;
import com.xh.bussiness.practice.bean.request.PracticeStudentResultRequest;
import com.xh.bussiness.practice.model.PracticeStudentResult;
import com.xh.bussiness.tiku.bean.dto.QuestionDto;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 学生作业作答结果 服务类
 * </p>
 *
 * @author Pitt
 * @since 2021-01-26
 */
public interface IPracticeStudentResultService extends IBaseService<PracticeStudentResult> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryPracticeStudentResultPage(XhPage page, PracticeStudentResultRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List<PracticeStudentResult> queryPracticeStudentResult(PracticeStudentResultRequest bean);

    void deleteByPracticeId(String practiceId);

    void deleteByPracticeIdAndStuId(String practiceId,String studentId);

    Integer getPracticeQuestionCount(String practiceId,String studentId);

    List<PracticeStudentResult> queryStudentScore(String practiceId);

    PracticeStudentVO queryQuestionAnalysis(String practiceId,String questionId);

    PracticeStudentVO queryPracticeAnalysis(String practiceId);

    /**
     * 高频错题
     * @author 赵文博
     * @date 2021/4/27 10:50
     * @param classId
     * @return java.util.List<java.lang.String>
     **/
    List<String> queryHighFrequencyErrorQuestion(String classId,String basicType);

    HashMap<String,Integer> queryHighFrequencyErrorQuestionCount(String classId);

    List<QuestionDto> queryHighFrequencyErrorQuestions(String classId,String basicType);
}
